<div class="form-container">
<div class="validation-errors" id="validationErrors" style="display:none;"></div>
<div class="walk-register-buttons" style="float: left;">
<a href="<?php echo( base_url() ); ?>cmb/member/home/<?php echo( $urlKey ); ?>/" target="_self">Member Home</a>
->&nbsp<a href="<?php echo( base_url() ); ?>cmb/member_registration/administration/<?php echo( $urlKey ); ?>/" target="_self">Admin Tasks</a>
</div>
<div class="walk-register-buttons" style="float: right;">
	<a href="<?php echo( base_url() ); ?>cmb/member/homepage_logout/"><img src="<?php echo( base_url() ); ?>assets/images/buttons/logout1.gif" border="0" /></a>
</div>
<?php
	Includes::IncludeFile( Includes::$FORM );
	Includes::IncludeFile( Includes::$SPACER );		
	$this->load->model('proxies/mahasamadhi/Mahasamadhi_proxy');
	$this->load->model('values/mahasamadhi/Mahasamadhi_registration_value');

		//Admin edit Mahasamadhi registrations
		//----------------------------------------
		Spacer::Render(0, 60);
		echo('<font color = "blue">'.$loggedinname.' is currently logged in</font>');
		Spacer::Render(0, 10);
		$numunreg = count($regInfo);
		if ($numunreg > 0)
		{
			echo('<b>Mahasamadhi Registration Info</b>');
			echo('<hr />');
			foreach($regInfo as $regRec)
			{
				$msrh_value = Mahasamadhi_registration_value::cast( $regRec );
				
				Spacer::Render(0, 20);	

				Form::OpenFormItem('Registration Code:', 260);
					echo( form_label($msrh_value->getRegCode(), 'rinfo', 'style="width: 20px;" ') );
				Form::CloseFormItem();
				Form::OpenFormItem('Registrant First Name:', 260);
					echo( form_label($msrh_value->getFirstName(), 'rinfo', 'style="width: 20px;" ') );
				Form::CloseFormItem();
				Form::OpenFormItem('Registrant Last Name:', 260);
					echo( form_label($msrh_value->getLastName(), 'rinfo', 'style="width: 20px;" ') );
				Form::CloseFormItem();
				Form::OpenFormItem('Registrant Email:', 260);
					echo( form_label($msrh_value->getEmail(), 'rinfo', 'style="width: 20px;" ') );
				Form::CloseFormItem();
				Form::OpenFormItem('Registrant Phone:', 260);
					echo( form_label($msrh_value->getPhone(), 'rinfo', 'style="width: 20px;" ') );
				Form::CloseFormItem();
				Form::OpenFormItem('Address:', 260);
					echo( form_label($msrh_value->getAddress(), 'rinfo', 'style="width: 20px;" ') );
				Form::CloseFormItem();
				Form::OpenFormItem('City:', 260);
					echo( form_label($msrh_value->getCity(), 'rinfo', 'style="width: 20px;" ') );
				Form::CloseFormItem();
				Form::OpenFormItem('State/Province:', 260);
					echo( form_label($msrh_value->getState(), 'rinfo', 'style="width: 20px;" ') );
				Form::CloseFormItem();
				Form::OpenFormItem('Country:', 260);
					echo( form_label($msrh_value->getCountry(), 'rinfo', 'style="width: 20px;" ') );
				Form::CloseFormItem();
				Form::OpenFormItem('Zip:', 260);
					echo( form_label($msrh_value->getZip(), 'rinfo', 'style="width: 20px;" ') );
				Form::CloseFormItem();
				Form::OpenFormItem('Number of adults:', 260);
					echo( form_label($msrh_value->getNumAdultRegistered(), 'rinfo', 'style="width: 20px;" ') );
				Form::CloseFormItem();
				Form::OpenFormItem('Number of children:', 260);
					echo( form_label($msrh_value->getNumChildRegistered(), 'rinfo', 'style="width: 20px;" ') );
				Form::CloseFormItem();
				Form::OpenFormItem('Number of CHYKs:', 260);
					echo( form_label($msrh_value->getNumCHYKRegistered(), 'rinfo', 'style="width: 20px;" ') );
				Form::CloseFormItem();
				Form::OpenFormItem('Payment Type:', 260);
					echo( form_label($msrh_value->getPaymentType(), 'rinfo', 'style="width: 20px;" ') );
				Form::CloseFormItem();
				Form::OpenFormItem('Payment Status:', 260);
					echo( form_label($msrh_value->getPaymentStatus(), 'rinfo', 'style="width: 20px;" ') );
				Form::CloseFormItem();
				Form::OpenFormItem('Check#:', 260);
					echo( form_label($msrh_value->getCheckNum(), 'rinfo', 'style="width: 20px;" ') );
				Form::CloseFormItem();
				Form::OpenFormItem('Credit Card TXN ID:', 260);
					echo( form_label($msrh_value->getPaymentTransactionID(), 'rinfo', 'style="width: 20px;" ') );
				Form::CloseFormItem();
				Form::OpenFormItem('Registration Fee:', 260);
					echo( form_label('$'.$msrh_value->getRegistrationFee(), 'rinfo', 'style="width: 20px;" ') );
				Form::CloseFormItem();
				Form::OpenFormItem('Sponsorship:', 260);
					echo( form_label('$'.$msrh_value->getSponsorship(), 'rinfo', 'style="width: 20px;" ') );
				Form::CloseFormItem();
				Form::OpenFormItem('Teacher Discount:', 260);
					echo( form_label('<font color = "red">$('.(100*$msrh_value->getIsTeacher()).')</font>', 'rinfo', 'style="width: 20px;" ') );
				Form::CloseFormItem();
				Form::OpenFormItem('General Discount:', 260);
					echo( form_label('<font color = "red">$('.$msrh_value->getGeneralDiscount().')</font>', 'rinfo', 'style="width: 20px;" ') );
				Form::CloseFormItem();
				Form::OpenFormItem('Donation:', 260);
					echo( form_label('$'.$msrh_value->getDonation(), 'rinfo', 'style="width: 20px;" ') );
				Form::CloseFormItem();
				Form::OpenFormItem('Total Registration Amount:', 260);
					echo( form_label('$'.$msrh_value->getTotalRegistrationFee(), 'rinfo', 'style="width: 20px;" ') );
				Form::CloseFormItem();

				echo('<a href="'.base_url().'mahasamadhi/mahasamadhi_registration/admin_edit_ms_registration_process/'.$msrh_value->getMSRegHistoryID().'/'.$urlKey.'" target="_self">Edit Registration</a>');
				echo('<hr style="width:50%; size:10; color:#0000FF;" align="left" />');			
			}
		}
		else
		{
			echo('<b>No Registrations</b>');
		}
		//----------------------------------------
													
		echo( form_close() );
?>
</div>
